package project.menu.mastermenu.listmenu;


import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;
import controllers.IAutoservice;

public class MastersByEmployment implements IMenuItem {

	private String name = "Sort Masters By Employment";
	private final Integer id = 2;
	private static IMenu submenu;
	private Navigator n;
	
	public MastersByEmployment(){
		n=Navigator.getInstance();
	}

	public Integer getId() {
		return id;
	}

	
	public void action(IAutoservice aut) {
		aut.SortMasterByEmployment();
		
		n.drawMenu(submenu);
	}

	
	public String getNameItem() {
		return name;
	}

	
	public static void setSubmenu(IMenu menu){
		 submenu=menu;
	}

}
